package com.zeng.pojo;

import org.springframework.beans.factory.annotation.Value;

/**
 * @author zeng
 * @data 2021/06/13 16:18
 */
public class Cat {
    @Value("小旺财")
    private String name;
    @Value("3")
    private int age;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
